home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
A.D. Software
/
OOFILE
/
Buildable, limited OOFILE
/
samples
/
ooftst08.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-27
|
852b
|
28 lines
// Copyright 1994 A.D. Software. All Rights Reserved
// OOFTEST8
// This sample just tests the dbConnect::raise() method of error reporting.
// which should use a message box on the Windows and Mac environments
// and console output elsewhere
#include "oofile.hpp"
int main()
{
cout << "Testing" << endl << flush;
dbConnect::raise( ostrstream()
<< "This is a longer string to see if I can get the Alert to handle it or not"
<< endl
<< "and just what happens with embedded newlines, also to see if the wrapping works OK "
<< "for very long lines which I am sure are now exceeding the 255 character limit, or "
<< "if not yet will soon be and so it will be interesting to see just what the compiler "
<< "complains of if indeed it does complain!");
cout << "Finished" << endl << flush;
return EXIT_SUCCESS;
}